package com.xx.xxx.customer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.xx.xxx.api.TestService;
import org.springframework.stereotype.Component;

/**
 * Created by fanjj on 2017/5/31.
 */
@Component
public class Test {
    @Reference
    TestService testService;//调用Dubbo暴露的接口

    public void test(){
        String str = testService.testSayDubbo();
        System.out.println(str);
    }
}
